package cn.xorange.commons.system.mapper.platform;

import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.platform.SysProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

/**
 * @author : yangjian
 * @date : 2021/12/27
 * @description :
 */
@Mapper
public interface SysProductMapper extends MBaseMapper<SysProduct> {

    @Select("select menu_id from sys_product_menu where product_id = #{productId}")
    ArrayList<Long> getProductMenuIds(@Param("productId") Long productId);

}
